package com.ld.security.server.admin.modules.ge.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.common.mybatis.base.entity.SuperEntity;
import com.ld.security.common.mybatis.base.vo.DataPerNode;
import com.ld.security.common.mybatis.constant.SqlCondition;
import com.ld.security.common.mybatis.core.entity.SqlUserEntity;
import com.ld.security.server.admin.modules.ge.constant.GeScopeConstant;
import com.ld.security.server.admin.modules.ge.sql.SqlProjectPo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 数据权限对象
 */
@Data
public class GeScopeEntity extends SuperEntity  implements SqlUserEntity,SqlProjectPo {

    @SqlKey(value = SqlCondition.eq,index = -1,and = false)
    @ApiModelProperty("创建人")
    private String crtUser;

    @SqlKey(value = SqlCondition.eq,index = -1,and = false)
    @ApiModelProperty("工程编号")
    private String projectId;

    @SqlKey(value = SqlCondition.eq,index = -1,and = false)
    @ApiModelProperty("范围类型")
    private GeScopeConstant.scopeType scopeType;



    @TableField(exist = false)
    @ApiModelProperty("数据权限")
    @SqlKey(tableField = false)
    private DataPerNode dataPer ;
}
